package com.zyk.scaffold.user.controller.tenant;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

@Data
@ApiModel(value = "TenantUpdateInput", description = "租户更新入参")
public class TenantUpdateRequest implements Serializable {

    private static final long serialVersionUID = 4644217849870965922L;

    @NotNull(message = "租户ID不能为空")
    @ApiModelProperty(value = "租户ID", required = true)
    private Long id;

    @NotNull(message = "租户名称不能为空")
    @ApiModelProperty(value = "租户名称", required = true)
    private String name;

    @NotEmpty(message = "租户功能ID列表不能为空")
    @ApiModelProperty(value = "租户功能ID列表", required = true)
    private List<Long> functionIds;
}
